import 'package:flutter/material.dart';

import 'modules/login/controller.dart';
import 'modules/login/login_page.dart';
import 'modules/main/controller.dart';
import 'modules/main/main_page.dart';

class EntryPage extends StatefulWidget{
  @override
  State<StatefulWidget> createState() => EntryPageState();
}

class EntryPageState extends State<EntryPage>{

  bool _isLogin = false;

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    if(_isLogin){
      return MainPage.bind(MainPageController());
    }else{
      return LoginPage.bind(LoginPageController());
    }
  }
}